
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', 'Microsoft YaHei', sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
    padding: 20px;
}

/* 导航栏 */
.navbar {
    background: white;
    padding: 15px 30px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.navbar h1 {
    color: #333;
    font-size: 24px;
    font-weight: 500;
}

.navbar .nav-links {
    display: flex;
    gap: 20px;
}

.navbar a {
    color: #666;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 4px;
    transition: all 0.3s;
    font-size: 15px;
}

.navbar a:hover {
    background: #f5f5f5;
    color: #333;
}

.navbar .user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.navbar .username {
    color: #333;
    font-weight: 500;
}

.navbar button {
    background: #333;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.navbar button:hover {
    background: #000;
}

/* 主容器 */
.container {
    max-width: 1200px;
    margin: 0 auto 20px;
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* 用户信息卡片 */
.user-card {
    background: white;
    border: 1px solid #e5e5e5;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
}

.user-card h2 {
    font-size: 32px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 500;
}

.user-card p {
    color: #666;
    font-size: 15px;
    margin-bottom: 30px;
}

/* 用户统计数据 */
.user-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 30px;
    gap: 20px;
}

.stat-item {
    text-align: center;
    flex: 1;
    padding: 20px;
    background: #fafafa;
    border-radius: 8px;
}

.stat-item .number {
    font-size: 36px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.stat-item .label {
    font-size: 14px;
    color: #666;
}

/* 提交历史区域 */
.submission-history {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.submission-history h2 {
    color: #333;
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 20px;
}

/* 提交记录表格 */
.submission-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.submission-table thead {
    background: #fafafa;
    border-bottom: 2px solid #e5e5e5;
}

.submission-table th {
    padding: 15px 12px;
    text-align: left;
    color: #666;
    font-weight: 500;
    font-size: 14px;
}

.submission-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}

.submission-table tbody tr:hover {
    background: #fafafa;
}

.submission-table td {
    padding: 15px 12px;
    color: #333;
    font-size: 15px;
}

/* 状态样式 */
.status {
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 4px;
    display: inline-block;
}

.status.accepted {
    color: #16a34a;
    background: #f0fdf4;
}

.status.not.accpeted,
.status.not.accepted {
    color: #ea580c;
    background: #fff7ed;
}

.status.wrong {
    color: #dc2626;
    background: #fef2f2;
}

/* 加载状态 */
.loading {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 15px;
}

#submissionHistoryContent p {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 15px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
    }

    .navbar h1 {
        font-size: 20px;
    }

    .navbar .nav-links {
        width: 100%;
        justify-content: center;
    }

    .navbar .user-info {
        width: 100%;
        justify-content: center;
    }

    .container,
    .submission-history {
        padding: 25px 20px;
    }

    .user-card {
        padding: 30px 20px;
    }

    .user-card h2 {
        font-size: 28px;
    }

    .user-stats {
        flex-direction: column;
        gap: 15px;
    }

    .stat-item .number {
        font-size: 32px;
    }

    .submission-table {
        font-size: 14px;
    }

    .submission-table th,
    .submission-table td {
        padding: 10px 8px;
    }
}

@media (max-width: 480px) {
    .user-card h2 {
        font-size: 24px;
    }

    .stat-item .number {
        font-size: 28px;
    }

    .submission-table th,
    .submission-table td {
        padding: 10px 5px;
        font-size: 13px;
    }

    .status {
        padding: 2px 8px;
        font-size: 13px;
    }
}